package com.qf.vo;

import java.util.Collection;

//属性与页面中显示数据对应
public class MsgResult<T>{
    private int code;//验证码
    private String msg;//提示信息
    private Collection<T> itemList;
    private float total;//订单总价

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Collection<T> getItemList() {
        return itemList;
    }

    public void setItemList(Collection<T> itemList) {
        this.itemList = itemList;
    }

    public float getTotal() {
        return total;
    }

    public void setTotal(float total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "code="+this.code+"msg"+this.msg;
    }
}

